package com.yykj.tencent.im.server.model.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.*;

/**
 * 用户账号
 */
@Data
@Entity
@IdClass(UserProfilePK.class)
public class UserProfile{

    @Id
    @ApiModelProperty(value = "UserID")
    @Column(length = 50,nullable = false)
    private String fromAccount;

    @Id
    @ApiModelProperty("运行环境")
    @Column(length = 10)
    private String environment;

    @ApiModelProperty(value="姓名")
    @Column(length = 50)
    private String name;

    @ApiModelProperty(value="头像")
    @Column(length = 200)
    private String image;

    @ApiModelProperty(value="医院名称")
    @Column(length = 100)
    private String hospital;

    @ApiModelProperty(value="科室")
    @Column(length = 50)
    private String depName;

    @ApiModelProperty(value="职称")
    @Column(length = 50)
    private String officer;

    @ApiModelProperty(value="电话")
    @Column(length = 30)
    private String phone;

    @ApiModelProperty(value="账号身份 值：doctor,patient")
    @Column(length = 20)
    private String client;


}
